package com.heihei.entity.res;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import java.io.Serializable;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 资源和标签的中间表
 * </p>
 *
 * @author duanhengfei
 * @since 2021-11-23
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("t_res_resource_tag")
public class ResResourceTagEntity extends Model<ResResourceTagEntity> {

    private static final long serialVersionUID = 1L;

    /**
     * 主键id
     */
    @TableId(type = IdType.UUID)
    @ApiModelProperty(value = "主键id")
    private String id;

    /**
     * 资源id
     */
    @ApiModelProperty(value = "资源id")
    private String resourceId;

    /**
     * 标签id
     */
    @ApiModelProperty(value = "标签id")
    private String tagId;


    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
